package com.hckjsec.cloud.domain;

import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hckjsec.common.annotation.Excel;
import com.hckjsec.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 微信用户基础信息对象 applets_wechat_user
 * 
 * @author cyt
 * @date 2021-08-10
 */
public class AppletsWechatUser implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** openid */
    private String openid;

    /** 配置id */
    @Excel(name = "配置id")
    private Long configId;

    /** 部门id */
    @Excel(name = "部门id")
    private Long deptId;

    /** 数据来源 */
    @Excel(name = "数据来源")
    private String areatype;

    /** openid */
    @Excel(name = "openid")
    private String unionid;

    /** 微信名 */
    @Excel(name = "微信名")
    private String nickname;

    /** 性别 */
    @Excel(name = "性别")
    private String gender;

    /** 语言 */
    @Excel(name = "语言")
    private String language;

    /** 城市 */
    @Excel(name = "城市")
    private String city;

    /** 省份 */
    @Excel(name = "省份")
    private String province;

    /** 国家 */
    @Excel(name = "国家")
    private String country;

    /** 微信图像 */
    @Excel(name = "微信图像")
    private String avatarurl;

    /** 经度 */
    @Excel(name = "经度")
    private String longitude;

    /** 纬度 */
    @Excel(name = "纬度")
    private String latitude;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date operatortime;

    public AppletsWechatUser() {
    }

    public AppletsWechatUser(String openid, Long configId, Long deptId, String longitude, String latitude) {
        this.openid = openid;
        this.configId = configId;
        this.deptId = deptId;
        this.longitude = longitude;
        this.latitude = latitude;
    }

    public void setOpenid(String openid)
    {
        this.openid = openid;
    }

    public String getOpenid()
    {
        return openid;
    }
    public void setConfigId(Long configId)
    {
        this.configId = configId;
    }

    public Long getConfigId()
    {
        return configId;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }

    public String getAreatype() {
        return areatype;
    }

    public void setAreatype(String areatype) {
        this.areatype = areatype;
    }

    public void setUnionid(String unionid)
    {
        this.unionid = unionid;
    }

    public String getUnionid()
    {
        return unionid;
    }
    public void setNickname(String nickname)
    {
        this.nickname = nickname;
    }

    public String getNickname()
    {
        return nickname;
    }
    public void setGender(String gender)
    {
        this.gender = gender;
    }

    public String getGender()
    {
        return gender;
    }
    public void setLanguage(String language)
    {
        this.language = language;
    }

    public String getLanguage()
    {
        return language;
    }
    public void setCity(String city)
    {
        this.city = city;
    }

    public String getCity()
    {
        return city;
    }
    public void setProvince(String province)
    {
        this.province = province;
    }

    public String getProvince()
    {
        return province;
    }
    public void setCountry(String country)
    {
        this.country = country;
    }

    public String getCountry()
    {
        return country;
    }
    public void setAvatarurl(String avatarurl)
    {
        this.avatarurl = avatarurl;
    }

    public String getAvatarurl()
    {
        return avatarurl;
    }
    public void setLongitude(String longitude)
    {
        this.longitude = longitude;
    }

    public String getLongitude()
    {
        return longitude;
    }
    public void setLatitude(String latitude)
    {
        this.latitude = latitude;
    }

    public String getLatitude()
    {
        return latitude;
    }
    public void setOperatortime(Date operatortime)
    {
        this.operatortime = operatortime;
    }

    public Date getOperatortime()
    {
        return operatortime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("openid", getOpenid())
                .append("configId", getConfigId())
                .append("deptId", getDeptId())
                .append("areatype", getAreatype())
                .append("unionid", getUnionid())
                .append("nickname", getNickname())
                .append("gender", getGender())
                .append("language", getLanguage())
                .append("city", getCity())
                .append("province", getProvince())
                .append("country", getCountry())
                .append("avatarurl", getAvatarurl())
                .append("longitude", getLongitude())
                .append("latitude", getLatitude())
                .append("operatortime", getOperatortime())
                .toString();
    }
}
